package org.csu.hospital.persistence;

import org.apache.ibatis.annotations.Param;
import org.csu.hospital.domain.Medicine;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MedicineMapper {

    List<Medicine> getMedicineByName(int medicineId);
    List<Medicine>getAllMedicine();

    int countMedicine();

    int insertMedicine(Medicine medicine);
    int updateMedicine(Medicine medicine, int medicineId);
    int deleteMedicine(int medicineId);

    List<Medicine> listAllMedicine (@Param("before") int before, @Param("after") int after);

}
